import request from "@/utils/request";

//根据PID查询部门
export function GetDeptList_PID(data) {
  return request({
    url: "api/Dept/GetDeptList_PID",
    method: "post",
    data,
  });
}

//根据关键词查询部门
export function GetDeptList(data) {
  return request({
    url: "api/Dept/GetDeptList",
    method: "post",
    data,
  });
}

//添加部门
export function AddDept(data) {
  return request({
    url: "api/Dept/AddDept",
    method: "post",
    data,
  });
}

//编辑部门
export function EditDept(data) {
  return request({
    url: "api/Dept/EditDept",
    method: "post",
    data,
  });
}

//删除部门
export function DelDept(data) {
  return request({
    url: "api/Dept/DelDept",
    method: "post",
    data,
  });
}
